package com.meilele.biz.guoziyang;


import com.meilele.dao.guoziyang.SecShowMapper;
import com.meilele.entity.guoziyang.SecShow;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SecShowImageBusiness {

    @Resource
    private SecShowMapper secShowMapper;


    public List<SecShow> findDetailImages(int styleId){

        List<SecShow> secShowList = secShowMapper.findDetaidImage(styleId);
        System.out.print(secShowList);
        return secShowMapper.findDetaidImage(styleId);
    }
    public int saveShow(SecShow secShow){
        return secShowMapper.insertShow(secShow);
    }

    /*
    此方法用来删除show表中与中间表中对应的信息
     */
    public void deleteShow(int styleId){
        secShowMapper.deleteShow(styleId);
        secShowMapper.deleteDeLa(styleId);

    }
    public void deleteDeLa(int styleId){
        secShowMapper.deleteDeLa(styleId);
    }
}
